home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.02 Feb 93 / Jörg's Folder / SysEqu.Txt < prev    next >
Encoding:
Text File  |  1992-10-07  |  19.8 KB  |  566 lines  |  [TEXT/QED1]

  1. ( File: SysEqu.txt )
  2.  
  3. ( Version 2.0 )
  4.  
  5. ( Copyright 1984, 1985, 1986 Apple Computer, Inc. All Rights Reserved )
  6.  
  7. ( System Equates -- This file defines the low-level equates for the )
  8. (    Macintosh software.  This is divided into two pieces for )
  9. (    assembly space and speed considerations.  The wholeSystem flag  )
  10. (    is used to include the less common equates which realizes a  )
  11. (    complete set.  The comments marked with ";+" denote categories or  )
  12. (    managers.  Record stuctures may have additional private equates  )
  13. (    which are defined by and reserved for use by Apple Computer, Inc. )
  14.  
  15. push.VOCAB.state
  16. ONLY MAC DEFINITIONS
  17. ALSO DEVELOPMENT
  18. ALSO FORTH
  19.  
  20. #ifndef _SYSEQU_
  21.  
  22.     #ifndef _FSEQU_
  23.         INCLUDE" :Includes:FSEqu.Txt"
  24.     #endif
  25.  
  26.     \ #define _SYSEQU_
  27.     18384 Insert.MODULE _SYSEQU_
  28.  
  29. \ 0    CONSTANT wholeSystem    ( Set for complete set of system equates )
  30.  
  31. ( ROM Equates )
  32.  
  33. $28E    CONSTANT ROM85        ( (word) actually high bit - 0 for ROM vers $75 (sic) and later )
  34. $B06    CONSTANT ROMMapHndl    ( (long) handle of ROM resource map )
  35.  
  36. ( Screen Equates )
  37.  
  38. \ $102    CONSTANT ScrVRes    ( screen vertical dots/inch [word] )
  39. \ $104    CONSTANT ScrHRes    ( screen horizontal dots/inch [word] )
  40. \ $824    CONSTANT ScrnBase    ( Screen Base [pointer] )
  41. \ $106    CONSTANT ScreenRow    ( rowBytes of screen [word] )
  42.  
  43.  
  44. ( Mouse/Keyboard )
  45.  
  46. $16E    CONSTANT MBTicks    ( tick count @ last mouse button [long] )
  47. $21A    CONSTANT JKybdTask    ( keyboard VBL task hook [pointer] )
  48. $184    CONSTANT KeyLast    ( ASCII for last valid keycode [word] )
  49. $186    CONSTANT KeyTime    ( tickcount when KEYLAST was rec'd [long] )
  50. $18A    CONSTANT KeyRepTime    ( tickcount when key was last repeated [long] )
  51.  
  52. ( Parameter RAM (a twenty byte copy of the real parameter ram). )
  53.  
  54. $1FB    CONSTANT SPConfig    ( config bits: 4-7 A, 0-3 B (see use type below) )
  55. $1FC    CONSTANT SPPortA    ( SCC port A configuration [word] )
  56. $1FE    CONSTANT SPPortB    ( SCC port B configuration [word] )
  57.  
  58. ( Serial port use type )
  59.  
  60. 0    CONSTANT useFree    ( Use undefined )
  61. 1    CONSTANT useATalk    ( AppleTalk )
  62. 2    CONSTANT useAsync    ( Async )
  63. 3    CONSTANT useExtClk    ( externally clocked )
  64.  
  65. ( Unpacked, user versions of parameter ram )
  66.  
  67. $2F0    CONSTANT DoubleTime    ( double click ticks [long] )
  68. $2F4    CONSTANT CaretTime    ( caret blink ticks [long] )
  69. $18E    CONSTANT KeyThresh    ( threshold for key repeat [word] )
  70. $190    CONSTANT KeyRepThresh    ( key repeat speed [word] )
  71. $260    CONSTANT SdVolume    ( Global volume (sound) control [byte] )
  72.  
  73. ( System Clocks )
  74.  
  75. $16A    CONSTANT Ticks    ( Tick count, time since boot [long] )
  76. $20C    CONSTANT Time    ( clock time (extrapolated) [long] )
  77.  
  78. ( Cursor )
  79.  
  80. 1    CONSTANT iBeamCursor    ( text selection cursor )
  81. 2    CONSTANT crossCursor    ( for structured selection )
  82. 3    CONSTANT plusCursor        ( for drawing graphics )
  83. 4    CONSTANT watchCursor    ( for indicating a long delay )
  84.  
  85.  
  86. ( result codes for Relstring call )
  87.  
  88. -1    CONSTANT sortsBefore    ( str1 < str2 )
  89. 0    CONSTANT sortsEqual        ( str1 = str2 )
  90. 1    CONSTANT sortsAfter        ( str1 > str2 )
  91.  
  92. ( Queue Package )
  93.  
  94. 7    CONSTANT qInUse    ( queue-in-use flag bit )
  95.  
  96. ( Header Record )
  97.  
  98. $A    CONSTANT qHeadSize    ( queue header size )
  99. 0    CONSTANT qFlags        ( miscellaneous flags [word] )
  100. 2    CONSTANT qHead        ( first element in queue [pointer] )
  101. 6    CONSTANT qTail        ( last element in queue [pointer] )
  102.  
  103. ( General Purpose Queue Element Definition )
  104.  
  105. 0    CONSTANT qLink    ( link to next queue element [pointer] )
  106. 4    CONSTANT qType    ( queue element type [word] )
  107.  
  108. ( Event Manager )
  109.  
  110. 4    CONSTANT evType    ( event queue element is type 4 )
  111.  
  112. ( Event Type Numbers (in EvtNum) )
  113.  
  114. 0    CONSTANT nullEvt    ( event 0 is the null event )
  115. 1    CONSTANT mButDwnEvt    ( mouse button down is event 1 )
  116. 2    CONSTANT mButUpEvt    ( mouse button up is event 2 )
  117. 3    CONSTANT keyDwnEvt    ( key down is event 3 )
  118. 4    CONSTANT keyUpEvt    ( key up is event 4 )
  119. 5    CONSTANT autoKeyEvt    ( auto-repeated key is event 5 )
  120. 6    CONSTANT updatEvt    ( update event )
  121. 7    CONSTANT diskInsertEvt    ( disk-inserted event )
  122. 8    CONSTANT activateEvt    ( activate/deactive event )
  123. $A    CONSTANT netWorkEvt    ( network event )
  124. $B    CONSTANT ioDrvrEvt    ( driver-defined event )
  125. $C    CONSTANT app1Evt    ( application defined events )
  126. $D    CONSTANT app2Evt    
  127. $E    CONSTANT app3Evt    
  128. $F    CONSTANT app4Evt    
  129.  
  130. ( Modifier bits in event record )
  131.  
  132. $0    CONSTANT activeFlag    ( activate? )
  133. $7    CONSTANT btnState    ( state of button? )
  134. $8    CONSTANT cmdKey        ( command key down? )
  135. $9    CONSTANT shiftKey    ( shift key down? )
  136. $A    CONSTANT alphaLock    ( alpha lock down? )
  137. $B    CONSTANT optionKey    ( option key down? )
  138.  
  139. ( Event Record Definition )
  140.  
  141. 0    CONSTANT evtNum        ( event code [word] )
  142. 2    CONSTANT evtMessage    ( event message [long] )
  143. 6    CONSTANT evtTicks    ( ticks since startup [long] )
  144. $A    CONSTANT evtMouse    ( mouse location [long] )
  145. $E    CONSTANT evtMeta    ( state of modifier keys [byte] )
  146. $F    CONSTANT evtMBut    ( state of mouse button [byte] )
  147. $10    CONSTANT evtBlkSize    ( size in bytes of the event record )
  148.  
  149. $100    CONSTANT MonkeyLives    ( monkey lives if >= 0 [word] )
  150. $15C    CONSTANT SEvtEnb        ( enable SysEvent calls from GNE [byte] )
  151. $8DE    CONSTANT JournalFlag    ( journaling state [word] )
  152. $8E8    CONSTANT JournalRef        ( Journalling driver's refnum [word] )
  153.  
  154.  
  155. ( Memory Manager )
  156.  
  157. ( Master pointer bits for handles - USE _HLock, _HPurge, etc. for portability )
  158.  
  159. 7    CONSTANT lock        ( lock bit in a master pointer )
  160. 6    CONSTANT purge        ( bit for purgeable/unpurgeable )
  161. 5    CONSTANT resourc    ( bit to flag a resource handle )
  162.  
  163.  
  164. $10C    CONSTANT BufPtr        ( top of application memory [pointer] )
  165. $110    CONSTANT StkLowPt    ( Lowest stack as measured in VBL task [pointer] )
  166. $118    CONSTANT TheZone    ( current heap zone [pointer] )
  167. $130    CONSTANT ApplLimit    ( application limit [pointer] )
  168. $2A6    CONSTANT SysZone    ( system heap zone [pointer] )
  169. $2AA    CONSTANT ApplZone    ( application heap zone [pointer] )
  170. $114    CONSTANT HeapEnd    ( end of heap [pointer] )
  171. $BAE    CONSTANT HiHeapMark    ( (long) highest address used by a zone below sp<01Nov85 JTC> )
  172.  
  173. $220    CONSTANT MemErr    ( last memory manager error [word] )
  174.  
  175. $800000    CONSTANT maxSize            ( outrageously large memory mgr request )
  176. $00002000    CONSTANT dfltStackSize    ( 8K size for stack )
  177. $00000400    CONSTANT mnStackSize    ( 1K minimum size for stack )
  178.     
  179. ( _InitZone argument table. )
  180.  
  181. 0    CONSTANT startPtr        ( Start address for zone [pointer] )
  182. 4    CONSTANT limitPtr        ( Limit address for zone [pointer] )
  183. 8    CONSTANT cMoreMasters    ( Number of masters to allocate at time [word] )
  184. 10    CONSTANT pGrowZone        ( growZone procedure [pointer] )
  185.  
  186. ( Control/Status Call Codes )
  187.  
  188. 1    CONSTANT killCode    ( KillIO code )
  189. 8    CONSTANT drvStsCode    ( status call code for drive status )
  190. 7    CONSTANT ejectCode    ( control call eject code )
  191. 8    CONSTANT tgBuffCode    ( set tag buffer code )
  192.  
  193. ( Driver flags, (Bit definitions for DCtlFlags byte) )
  194.  
  195. 0    CONSTANT dReadEnable    ( enabled for read operations )
  196. 1    CONSTANT dWritEnable    ( enabled for writing )
  197. 2    CONSTANT dCtlEnable        ( enabled for control operations )
  198. 3    CONSTANT dStatEnable    ( enabled for status operations )
  199. 4    CONSTANT dNeedGoodBye    ( needs a "goodbye kiss" )
  200. 5    CONSTANT dNeedTime        ( needs "main thread" time )
  201. 6    CONSTANT dNeedLock        ( needs to be accessed at interrupt level )
  202.  
  203. ( Run-Time flags, (Bit definitions for DCtlFlags+1 byte) )
  204.  
  205. 5    CONSTANT dOpened    ( bit to mark driver 'Open' )
  206. 6    CONSTANT dRAMBased    ( 1=RAM-based Driver, 0=ROM-based )
  207. 7    CONSTANT drvrActive    ( bit to mark the driver active )
  208.  
  209. ( Drive queue element offsets )
  210.  
  211. $6    CONSTANT dQDrive    ( drive number [word] )
  212. $8    CONSTANT dQRefNum    ( driver refnum [word] )
  213. $A    CONSTANT dQFSID        ( file system handling this drive [word] )
  214. $C    CONSTANT dQDrvSz    ( number of blocks this drive [word] )
  215. $E    CONSTANT dQDrvSz2    ( if qType = 1, high word of drive size )
  216.  
  217. ( Queue Element Type Definitions )
  218.  
  219. 2    CONSTANT ioQType    ( I/O queue element is type 2 )
  220. 3    CONSTANT drvQType    ( timer queue element is type 3 )
  221. 5    CONSTANT fsQType    ( File System VCB element )
  222.     
  223. ( Device Control Entry Definition )
  224.  
  225. $28    CONSTANT dCtlEntrySize    ( length of a DCE [40 bytes] )
  226. 0    CONSTANT dCtlDriver        ( driver [handle] )
  227. 4    CONSTANT dCtlFlags        ( flags [word] )
  228. 6    CONSTANT dCtlQueue        ( queue header )
  229. 8    CONSTANT dCtlQHead        ( queue first-element [pointer] )
  230. $C    CONSTANT dCtlQTail        ( queue last-element [pointer] )
  231. $10    CONSTANT dCtlPosition    ( position [long] )
  232. $14    CONSTANT dCtlStorage    ( driver's private storage [handle] )
  233. $18    CONSTANT dCtlRefNum        ( refNum of this driver [word] )
  234. $1A    CONSTANT dCtlCurTicks    ( counter for timing systemTask calls [long] )
  235. $1E    CONSTANT dCtlWindow        ( driver's window (if any) [pointer] )
  236. $22    CONSTANT dCtlDelay        ( number of ticks between sysTask calls [word] )
  237. $24    CONSTANT dCtlEMask        ( desk accessory event mask [word] )
  238. $26    CONSTANT dCtlMenu        ( menu ID associated with driver [word] )
  239.  
  240. ( Driver Globals )
  241.  
  242. $11C    CONSTANT UTableBase        ( unit I/O table [pointer] )
  243. $1D2    CONSTANT UnitNtryCnt    ( count of entries in unit table [word] )
  244.  
  245. $8F4    CONSTANT JFetch    ( fetch a byte routine for drivers [pointer] )
  246. $8F8    CONSTANT JStash    ( stash a byte routine for drivers [pointer] )
  247. $8FC    CONSTANT JIODone    ( IODone entry location [pointer] )
  248.  
  249. ( Chooser )
  250.  
  251. 1    CONSTANT chooserID    ( caller value for the chooser )
  252.  
  253. ( Printer )
  254.  
  255. 0    CONSTANT wDev    ( the drvr #, hi byte = refnum, lo byte = variant [word] )
  256.  
  257. ( I/O System )
  258.  
  259. ( File positioning modes for ioPosMode field of I/O record )
  260.  
  261. 0    CONSTANT fsAtMark        ( at current position of mark )
  262. 1    CONSTANT fsFromStart    ( offset relative to beginning of file )
  263. 2    CONSTANT fsFromLEOF        ( offset relative to logical end-of-file )
  264. 3    CONSTANT fsFromMark        ( offset relative to current mark )
  265. $40    CONSTANT rdVerify        ( read verify mode )
  266.  
  267. ( Permission values for ioPermssn field of I/O record )
  268.  
  269. 0    CONSTANT fsCurPerm    ( whatever is currently allowed )
  270. 1    CONSTANT fsRdPerm    ( request to read only )
  271. 2    CONSTANT fsWrPerm    ( request to write only )
  272. 3    CONSTANT fsRdWrPerm    ( request to read and write )
  273. 4    CONSTANT fsRdWrShPerm    ( request for shared read and write )
  274.  
  275. ( I/O record (general fields with trap-specific ones listed below) )
  276.  
  277. $32    CONSTANT ioQElSize    ( length of I/O parameter block [50 bytes] )
  278.  
  279. $0    CONSTANT ioLink        ( queue link in header [pointer] )
  280. $4    CONSTANT ioType        ( type for safety check [byte] )
  281. $6    CONSTANT ioTrap        ( the trap [word] )
  282. $8    CONSTANT ioCmdAddr    ( address to dispatch to [pointer] )
  283.  
  284. $C    CONSTANT ioCompletion    ( completion routine [pointer] )
  285. $10    CONSTANT ioResult    ( I/O result code [word] )
  286. $12    CONSTANT ioFileName    ( file name pointer [pointer] )
  287. $16    CONSTANT ioVRefNum    ( volume refnum [word] )
  288. $16    CONSTANT ioDrvNum    ( drive number [word] )
  289. $18    CONSTANT ioRefNum    ( file reference number [word] )
  290.  
  291. $1A    CONSTANT ioFileType    ( specified along with FileName [byte] )
  292.  
  293. ( specific fields for _Read, _Write )
  294.  
  295. $20    CONSTANT ioBuffer        ( data buffer [pointer] )
  296. $24    CONSTANT ioByteCount    ( requested byte count [long] )
  297. $28    CONSTANT ioNumDone        ( actual byte count completed [long] )
  298.  
  299. $2C    CONSTANT ioPosMode        ( initial file positioning mode/eol char [word] )
  300. $2E    CONSTANT ioPosOffset    ( file position offset [long] )
  301.  
  302. ( specific fields for _Allocate )
  303.  
  304. $24    CONSTANT ioReqCount    ( requested new size [long] )
  305. $28    CONSTANT ioActCount    ( actual byte count allocated [long] )
  306.  
  307. ( specific fields for _Open )
  308.  
  309. $1B    CONSTANT ioPermssn    ( permissions [byte] )
  310. $1C    CONSTANT ioOwnBuf    ( "private" 522-byte buffer [pointer] )
  311.  
  312. ( specific fields for _ReName )
  313.  
  314. $1C    CONSTANT ioNewName    ( new name pointer [pointer] )
  315.  
  316. ( specific fields for  _GetFileInfo, _SetFileInfo )
  317.  
  318. $50    CONSTANT ioFQElSize    ( File command parameter length [80 bytes] )
  319.  
  320. $1C    CONSTANT ioFDirIndex    ( directory index of file [word] )
  321. $1E    CONSTANT ioFlAttrib    ( in-use bit=7, lock bit=0 [byte] )
  322. $1F    CONSTANT ioFFlType    ( file type [byte] )
  323. $20    CONSTANT ioFlUsrWds    ( finder info [16 bytes] )
  324. $20    CONSTANT ioFlFndrInfo    ( finder info [16 bytes] )
  325. $30    CONSTANT ioFFlNum    ( file number [long] )
  326. $30    CONSTANT ioDirID    ( directory ID )
  327.  
  328. $34    CONSTANT ioFlStBlk    ( start file block (0000 if none) [word] )
  329. $36    CONSTANT ioFlLgLen    ( logical length (EOF) [long] )
  330. $3A    CONSTANT ioFlPyLen    ( physical length in bytes [long] )
  331. $3E    CONSTANT ioFlRStBlk    ( resource fork's start file block [word] )
  332. $40    CONSTANT ioFlRLgLen    ( resource fork's logical length (EOF) [long] )
  333. $44    CONSTANT ioFlRPyLen    ( resource fork's physical length [long] )
  334.  
  335. $48    CONSTANT ioFlCrDat    ( creation date & time [long] )
  336. $4C    CONSTANT ioFlMdDat    ( last modification date & time [long] )
  337.  
  338. ( Specific fields for _GetEOF, _SetEOF )
  339.  
  340. $1C    CONSTANT ioLEOF    ( logical end-of-file [long] )
  341.  
  342. ( Specific fields for _SetFileType )
  343.  
  344. $1C    CONSTANT ioNewType    ( new type byte [byte] )
  345.  
  346. ( Specific fields for _GetVolInfo, _GetVolume, _SetVolume, _MountVol, )
  347. ( _UnmountVol, _Eject.  Note that these traps have a bigger record size. )
  348.  
  349. $40    CONSTANT ioVQElSize    ( Volume command parameter length [64 bytes] )
  350. $16    CONSTANT ioVDrvNum    ( drive or volume number [word] )
  351. $12    CONSTANT ioVNPtr    ( name buffer (or zero) [pointer] )
  352. $1C    CONSTANT ioVolIndex    ( volume index number [word] )
  353.  
  354. $1E    CONSTANT ioVCrDate    ( creation date & time [long] )
  355. $22    CONSTANT ioVLsBkUp    ( last backup date & time [long] )
  356. $26    CONSTANT ioVAtrb    ( Volume attributes [word] )
  357. $28    CONSTANT ioVNmFls    ( # files in directory [word] )
  358. $2A    CONSTANT ioVDirSt    ( start block of file dir [word] )
  359. $2C    CONSTANT ioVBlLn    ( length of dir in blocks [word] )
  360. $2E    CONSTANT ioVNmAlBlks    ( num blks (of alloc size) this dev [word] )
  361. $30    CONSTANT ioVAlBlkSiz    ( alloc blk byte size [long] )
  362. $34    CONSTANT ioVClpSiz    ( bytes to try to allocate at a time [long] )
  363. $38    CONSTANT ioAlBlSt    ( starting block in block map [word] )
  364. $3A    CONSTANT ioVNxtFNum    ( next free file number [long] )
  365. $3E    CONSTANT ioVFrBlk    ( # free alloc blks for this vol [word] )
  366.     
  367. ( --- New File System Equates  --- )
  368.  
  369. ( Catalog structure equates: )
  370.  
  371. 1    CONSTANT fsRtParID    ( DirID of parent's root )
  372. 2    CONSTANT fsRtDirID    ( Root DirID )
  373. 3    CONSTANT fsXTCNID    ( Extent B*-Tree file ID )
  374. 4    CONSTANT fsCTCNID    ( Catalog B*-Tree file ID )
  375. $10    CONSTANT fsUsrCNID    ( First assignable user CNode ID )
  376.  
  377. ( Additional equates for catalog information return: )
  378.  
  379. $50    CONSTANT ioFlBkDat    ( File's last backup date )
  380. $54    CONSTANT ioFlxFndrInfo    ( File's additional finder info bytes )
  381. $64    CONSTANT ioFlParID    ( File's parent directory ID )
  382. $68    CONSTANT ioFlClpSiz    ( File's clump size, in bytes )
  383.  
  384. ( Additional equates for directory information return: )
  385.  
  386. 4    CONSTANT ioDirFlg    ( Bit in ioFlAttrb set to indicate directory )
  387. $20    CONSTANT ioDrUsrWds    ( Directory's user info bytes )
  388. $30    CONSTANT ioDrDirID    ( Directory ID )
  389. $34    CONSTANT ioDrNmFls    ( Number of files in a directory )
  390. $48    CONSTANT ioDrCrDat    ( Directory creation date )
  391. $4C    CONSTANT ioDrMdDat    ( Directory modification date )
  392. $50    CONSTANT ioDrBkDat    ( Directory backup date )
  393. $54    CONSTANT ioDrFndrInfo    ( Directory finder info bytes )
  394. $64    CONSTANT ioDrParID    ( Directory's parent directory ID )
  395.  
  396. $6C    CONSTANT ioHFQElSiz    ( Size of a Hierarchical File Queue Element )
  397.  
  398. ( Additional equates for _TFGetVolInfo: )
  399.  
  400. $22    CONSTANT ioVLsMod    ( Last modification date )
  401. $40    CONSTANT ioVSigWord    ( Volume signature )
  402. $2A    CONSTANT ioVCBVBMst    
  403. $3A    CONSTANT ioVNxtCNID    
  404. $42    CONSTANT ioVDrvInfo    ( Drive number (0 if volume is offline) )
  405. $44    CONSTANT ioVDRefNum    ( Driver refNum )
  406. $46    CONSTANT ioVFSID    ( ID of file system handling this volume )
  407. $48    CONSTANT ioVBkup    ( Last backup date (0 if never backed up) )
  408. $4C    CONSTANT ioVSeqNum    ( Sequence number of this volume in volume set )
  409. $4E    CONSTANT ioVWrCnt    ( Volume write count )
  410. $52    CONSTANT ioVFilCnt    ( Total number of files on volume )
  411. $56    CONSTANT ioVDirCnt    ( Total number of directories on the volume )
  412. $5A    CONSTANT ioVFndrInfo    ( Finder information for volume )
  413.  
  414. $7A    CONSTANT ioHVQElSize    ( Length of Hierarchical Volume information PB )
  415.  
  416. ( New fields for _GetFCBInfo: )
  417.  
  418. $1C    CONSTANT ioFCBIndex    ( FCB index for _GetFCBInfo )
  419. $20    CONSTANT ioFCBFlNm    ( File number )
  420. $24    CONSTANT ioFCBFlags    ( FCB flags )
  421. $26    CONSTANT ioFCBStBlk    ( File start block )
  422. $28    CONSTANT ioFCBEOF    ( Logical end-of-file )
  423. $2C    CONSTANT ioFCBPLen    ( Physical end-of-file )
  424. $30    CONSTANT ioFCBCrPs    ( Current file position )
  425. $34    CONSTANT ioFCBVRefNum    ( Volume refNum )
  426. $36    CONSTANT ioFCBClpSiz    ( File clump size )
  427. $3A    CONSTANT ioFCBParID    ( Parent directory ID )
  428.  
  429. ( New fields for _GetWDInfo: )
  430.  
  431. $1A    CONSTANT ioWDIndex        ( Working Directory index for _GetWDInfo )
  432. $1C    CONSTANT ioWDProcID        ( WD's ProcID (long) )
  433. $20    CONSTANT ioWDVRefNum    ( WD's Volume RefNum (word) )
  434. $30    CONSTANT ioWDDirID        ( WD's DirID (long) )
  435.  
  436. ( New fields for _FSControl call: )
  437.  
  438. $20    CONSTANT ioFSVrsn    ( File system version )
  439.  
  440. ( New field for CatMove )
  441.  
  442. $24    CONSTANT ioNewDirID    ( destination directory for CatMove )
  443.  
  444. ( --- End of New File System Equates --- )
  445.     
  446. ( Specific fields for _Control, _Status )
  447.  
  448. $1A    CONSTANT csCode        ( control/status code [word] )
  449. $1C    CONSTANT csParam    ( operation-defined parameters [22 bytes] )
  450.  
  451. ( FInfo (Finder Information) record layout )
  452.  
  453. $0    CONSTANT fdType        ( type of file [long] )
  454. $4    CONSTANT fdCreator    ( file's creator [long] )
  455. $8    CONSTANT fdFlags    ( flags [word] )
  456. $A    CONSTANT fdLocation    ( file's location [point] )
  457. $E    CONSTANT fdFldr        ( file's window [word] )
  458.     
  459. ( added for HFS )
  460.  
  461. ( FXInfo record layout )
  462.  
  463. $0    CONSTANT fdIconID    ( Icon ID [word] )
  464. $2    CONSTANT fdUnused    ( unused but reserved [4 words] )
  465. $A    CONSTANT fdComment    ( Comment ID [word] )
  466. $C    CONSTANT fdPutAway    ( Home Dir ID [2 words] )
  467.  
  468. ( DInfo record layout )
  469.  
  470. $0    CONSTANT frRect        ( Folder Rect [4 words] )
  471. $8    CONSTANT frFlags    ( Flags [word] )
  472. $A    CONSTANT frLocation    ( Location [2 words] )
  473. $E    CONSTANT frView        ( Folder view [word] )
  474.  
  475. ( DXInfo record layout )
  476.  
  477. $0    CONSTANT frScroll        ( scroll position [2 words] )
  478. $4    CONSTANT frOpenChain    ( dirID chain of open folders [2 words] )
  479. $8    CONSTANT frUnused        ( unused but reserved [word] )
  480. $A    CONSTANT frComment        ( comment [word] )
  481. $C    CONSTANT frPutAway        ( Dir ID [2 words] )
  482.  
  483. ( end of addition )
  484.     
  485. ( Masks for fdFlags field of FInfo record defined above )
  486.  
  487. 13    CONSTANT fHasBundle    ( set if file has a bundle )
  488. 14    CONSTANT fInvisible    ( set if file's icon is invisible )
  489. -3    CONSTANT fTrash        ( file is in Trash window )
  490. -2    CONSTANT fDeskTop    ( file is on desktop )
  491. 0    CONSTANT fDisk        ( file is in disk window )
  492.  
  493. ( File System Globals )
  494.  
  495. $308    CONSTANT DrvQHdr    ( queue header of drives in system [10 bytes] )
  496. $210    CONSTANT BootDrive    ( drive number of boot drive [word] )
  497. $338    CONSTANT EjectNotify    ( eject notify procedure [pointer] )
  498. $33C    CONSTANT IAZNotify    ( world swaps notify procedure [pointer] )
  499. $214    CONSTANT SFSaveDisk    ( last vRefNum seen by standard file [word] )
  500. $36A 46 +
  501.         CONSTANT CurDirStore      ( save dir across calls to Standard File [long] )
  502. $1E    CONSTANT ROMDoEject        ( add this value to the value in ROMBase for DoEject utility                 )
  503.  
  504.  
  505. ( Date-Time record (for use with _Secs2Date, and _Date2Secs) )
  506.  
  507. $0    CONSTANT dtYear        ( year (1904..) [word] )
  508. $2    CONSTANT dtMonth    ( month (1..12) [word] )
  509. $4    CONSTANT dtDay        ( day (1..31) [word] )
  510. $6    CONSTANT dtHour        ( hour (0..23) [word] )
  511. $8    CONSTANT dtMinute    ( minute (0..59) [word] )
  512. $A    CONSTANT dtSecond    ( second (0..59) [word] )
  513. $C    CONSTANT dtDayOfWeek    ( day of week, sunday..saturday (1..7) [word] )
  514.  
  515.  
  516. ( Miscellaneous stuff )
  517.  
  518. $A02    CONSTANT OneOne        ( constant $00010001 [long] )
  519. $A06    CONSTANT MinusOne    ( constant $FFFFFFFF [long] )
  520. $31A    CONSTANT Lo3Bytes    ( constant $00FFFFFF [long] )
  521.  
  522. $2AE    CONSTANT ROMBase    ( ROM base address [pointer] )
  523. $2B2    CONSTANT RAMBase    ( RAM base address [pointer] )
  524. $15A    CONSTANT SysVersion    ( version # of RAM-based system [word] )
  525. $156    CONSTANT RndSeed    ( random seed/number [long] )
  526.  
  527.  
  528. ( Scratch Areas )
  529.  
  530. $1E4    CONSTANT scratch20    ( scratch [20 bytes] )
  531. $9FA    CONSTANT scratch8    ( scratch [8 bytes] )
  532.  
  533.  
  534. ( Scrap Manager )
  535.  
  536. $960    CONSTANT ScrapSize    ( scrap length [long] )
  537. $964    CONSTANT ScrapHandle    ( memory scrap [handle] )
  538. $968    CONSTANT ScrapCount    ( validation byte [word] )
  539. $96A    CONSTANT ScrapState    ( scrap state [word] )
  540. $96C    CONSTANT ScrapName    ( pointer to scrap name [pointer] )
  541.  
  542.  
  543. ( Desk Accessories )
  544.  
  545. ( Message Definitions (in CSCode of control call) )
  546.  
  547. $40    CONSTANT accEvent    ( event message from SystemEvent )
  548. $41    CONSTANT accRun        ( run message from SystemTask )
  549. $42    CONSTANT accCursor    ( cursor message from SystemTask )
  550. $43    CONSTANT accMenu    ( menu message from SystemMenu )
  551. $44    CONSTANT accUndo    ( undo message from SystemEdit )
  552. $46    CONSTANT accCut        ( cut message from SystemEdit )
  553. $47    CONSTANT accCopy    ( copy message from SystemEdit )
  554. $48    CONSTANT accPaste    ( paste message from SystemEdit )
  555. $49    CONSTANT accClear    ( clear message from SystemEdit )
  556.  
  557. -1    CONSTANT goodBye    ( goodbye message )
  558.  
  559.     \ wholeSystem ?INCLUDE" SysEquWhole.Txt"
  560.  
  561.     _SYSEQU_ restore.Name.Space
  562.  
  563. #endif
  564. pop.VOCAB.state
  565.  
  566.